package core.tests;

import org.junit.Test;

import core.exceptions.ExceptionFormat;
import core.exceptions.LexicalException;
import core.tests.resquests.LexicalRequest;

public class LexicalTests {

	@Test
	public void correctInputTest() {
		new LexicalRequest("1.1 Lexically Correct Input.mod").analyze();
	}

	@Test
	public void wrongInputTest() {
		new LexicalRequest("1.2 Lexically Wrong Input.mod").analyze(
				new LexicalException(ExceptionFormat.LEXICAL, 42, 23, "º"));
	}

}